  * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        :root {
            --primary: #3498db;
            --secondary: #2c3e50;
            --success: #2ecc71;
            --warning: #f39c12;
            --danger: #e74c3c;
            --dark: #1a1f2a;
            --light: #f8f9fa;
            --card-bg: #252d3a;
            --sidebar-width: 250px;
            --header-height: 70px;
        }

        body {
            background-color: #1a1f2a;
            color: #e9ecef;
            min-height: 100vh;
        }

        #app {
            display: flex;
            min-height: 100vh;
        }

        /* 侧边栏样式 */
        .sidebar {
            width: var(--sidebar-width);
            background-color: var(--dark);
            height: 100vh;
            position: fixed;
            padding-top: 20px;
            box-shadow: 3px 0 10px rgba(0, 0, 0, 0.2);
            z-index: 100;
        }

        .logo {
            padding: 20px;
            text-align: center;
            border-bottom: 1px solid #2c3e50;
            margin-bottom: 20px;
        }

        .logo h1 {
            font-size: 1.5rem;
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .logo i {
            color: var(--primary);
        }

        .nav-links {
            list-style: none;
            padding: 0 20px;
        }

        .nav-links li {
            margin-bottom: 10px;
        }

        .nav-links a {
            display: flex;
            align-items: center;
            padding: 12px 15px;
            color: #b0b3b8;
            text-decoration: none;
            border-radius: 5px;
            transition: all 0.3s ease;
            gap: 12px;
        }

        .nav-links a:hover,
        .nav-links a.active {
            background-color: var(--card-bg);
            color: #fff;
        }

        .nav-links a i {
            width: 25px;
            text-align: center;
        }

        /* 主内容区样式 */
        .main-content {
            flex: 1;
            margin-left: var(--sidebar-width);
            padding: 20px;
        }

        /* 顶部导航栏 */
        .topbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background-color: var(--card-bg);
            padding: 15px 30px;
            border-radius: 10px;
            margin-bottom: 30px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }

        .search-box {
            display: flex;
            align-items: center;
            background: #1e2430;
            padding: 8px 15px;
            border-radius: 30px;
            width: 300px;
        }

        .search-box input {
            background: transparent;
            border: none;
            color: white;
            padding: 8px;
            width: 100%;
            outline: none;
        }

        .user-actions {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .notification,
        .user-profile {
            position: relative;
            cursor: pointer;
        }

        .notification i {
            font-size: 1.2rem;
        }

        .badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background: var(--danger);
            color: white;
            border-radius: 50%;
            width: 18px;
            height: 18px;
            font-size: 0.7rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .user-profile img {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
        }

        /* 商品管理区域 */
        .products-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .section-title {
            font-size: 1.5rem;
            font-weight: 600;
        }

        .btn {
            background: var(--primary);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s;
            font-weight: 500;
        }

        .btn:hover {
            background: #2980b9;
            transform: translateY(-2px);
        }

        .btn-success {
            background: var(--success);
        }

        .btn-success:hover {
            background: #27ae60;
        }

        .btn-warning {
            background: var(--warning);
        }

        .btn-warning:hover {
            background: #e67e22;
        }

        .btn-danger {
            background: var(--danger);
        }

        .btn-danger:hover {
            background: #c0392b;
        }

        /* 商品表格 */
        .products-table {
            background: var(--card-bg);
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            margin-bottom: 30px;
        }

        .table-header {
            display: grid;
            grid-template-columns: 80px 1fr 120px 120px 100px 120px 150px;
            padding: 15px 20px;
            background: #1e2430;
            font-weight: 600;
            color: var(--primary);
        }

        .table-row {
            display: grid;
            grid-template-columns: 80px 1fr 120px 120px 100px 120px 150px;
            padding: 15px 20px;
            border-bottom: 1px solid #2c3e50;
            transition: background 0.3s;
        }

        .table-row:hover {
            background: rgba(255, 255, 255, 0.03);
        }

        .table-row:last-child {
            border-bottom: none;
        }

        .product-image {
            width: 60px;
            height: 60px;
            border-radius: 5px;
            object-fit: cover;
        }

        .product-name {
            font-weight: 600;
        }

        .product-category {
            background: rgba(52, 152, 219, 0.2);
            color: var(--primary);
            padding: 3px 8px;
            border-radius: 20px;
            font-size: 0.85rem;
            display: inline-block;
        }

        .status-badge {
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 0.85rem;
            text-align: center;
        }

        .status-active {
            background: rgba(46, 204, 113, 0.2);
            color: var(--success);
        }

        .status-inactive {
            background: rgba(231, 76, 60, 0.2);
            color: var(--danger);
        }

        .action-buttons {
            display: flex;
            gap: 10px;
        }

        .action-btn {
            padding: 5px 10px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 0.9rem;
            transition: all 0.2s;
        }

        .edit-btn {
            background: rgba(52, 152, 219, 0.2);
            color: var(--primary);
            border: 1px solid rgba(52, 152, 219, 0.3);
        }

        .edit-btn:hover {
            background: rgba(52, 152, 219, 0.3);
        }

        .delete-btn {
            background: rgba(231, 76, 60, 0.2);
            color: var(--danger);
            border: 1px solid rgba(231, 76, 60, 0.3);
        }

        .delete-btn:hover {
            background: rgba(231, 76, 60, 0.3);
        }

        .toggle-status-btn {
            background: rgba(243, 156, 18, 0.2);
            color: var(--warning);
            border: 1px solid rgba(243, 156, 18, 0.3);
        }

        .toggle-status-btn:hover {
            background: rgba(243, 156, 18, 0.3);
        }

        /* 模态框样式 */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s;
        }

        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .modal-content {
            background: var(--card-bg);
            width: 90%;
            max-width: 700px;
            border-radius: 10px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            transform: translateY(-20px);
            transition: transform 0.3s;
        }

        .modal-overlay.active .modal-content {
            transform: translateY(0);
        }

        .modal-header {
            padding: 20px;
            border-bottom: 1px solid #2c3e50;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-title {
            font-size: 1.3rem;
            font-weight: 600;
        }

        .close-modal {
            background: none;
            border: none;
            color: #b0b3b8;
            font-size: 1.5rem;
            cursor: pointer;
            transition: color 0.2s;
        }

        .close-modal:hover {
            color: var(--danger);
        }

        .modal-body {
            padding: 20px;
            max-height: 70vh;
            overflow-y: auto;
        }

        .form-row {
            margin-bottom: 20px;
        }

        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: #b0b3b8;
        }

        .form-control {
            width: 100%;
            background: #1e2430;
            border: 1px solid #2c3e50;
            border-radius: 5px;
            padding: 12px 15px;
            color: white;
            font-size: 1rem;
            transition: border-color 0.3s;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary);
        }

        textarea.form-control {
            min-height: 100px;
            resize: vertical;
        }

        .form-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .image-upload {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 15px;
        }

        .image-preview {
            width: 200px;
            height: 200px;
            border: 2px dashed #2c3e50;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            position: relative;
            background: #1e2430;
        }

        .image-preview img {
            max-width: 100%;
            max-height: 100%;
            object-fit: cover;
        }

        .image-placeholder {
            text-align: center;
            color: #b0b3b8;
        }

        .image-placeholder i {
            font-size: 3rem;
            margin-bottom: 10px;
            display: block;
            color: #2c3e50;
        }

        .upload-btn {
            background: var(--primary);
            color: white;
            padding: 8px 20px;
            border-radius: 5px;
            cursor: pointer;
            transition: background 0.3s;
        }

        .upload-btn:hover {
            background: #2980b9;
        }

        .modal-footer {
            padding: 20px;
            border-top: 1px solid #2c3e50;
            display: flex;
            justify-content: flex-end;
            gap: 15px;
        }

        /* 响应式调整 */
        @media (max-width: 992px) {
            .form-grid {
                grid-template-columns: 1fr;
            }
            
            .table-header, .table-row {
                grid-template-columns: 70px 1fr 100px 100px 90px 110px;
            }
            
            .table-header .action-header,
            .table-row .actions {
                display: none;
            }
        }

        @media (max-width: 768px) {
            .sidebar {
                width: 70px;
            }

            .logo h1 span,
            .nav-links a span {
                display: none;
            }

            .logo h1 {
                justify-content: center;
            }

            .nav-links a {
                justify-content: center;
            }

            .main-content {
                margin-left: 70px;
            }

            .search-box {
                width: 200px;
            }
            
            .table-header, .table-row {
                grid-template-columns: 60px 1fr 90px 80px 80px;
            }
            
            .table-header .stock-header,
            .table-row .stock {
                display: none;
            }
        }

        @media (max-width: 576px) {
            .topbar {
                flex-direction: column;
                gap: 15px;
            }

            .search-box {
                width: 100%;
            }
            
            .products-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 15px;
            }
            
            .table-header, .table-row {
                grid-template-columns: 50px 1fr 80px;
            }
            
            .table-header .price-header,
            .table-row .price,
            .table-header .sales-header,
            .table-row .sales {
                display: none;
            }
        }